<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<script type="text/javascript" src="<%=basePath%>/js/jquery-3.2.1.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/core.js"></script>

<title>My JSP 'updatepassword.jsp' starting page</title>

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<form class="form-horizontal" method="post" name="from1"
		action="user/updateUserPWD" enctype="multipart/form-data" role="form">
		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">旧密码</label>
			<div class="col-sm-10">
				<input type="password" class="form-control" id="userPhone"
					name="oldUserPwd" placeholder="请输入旧密码" nValidate="{required:true}">
			</div>
		</div>
		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">新密码</label>
			<div class="col-sm-10">
				<input type="password" class="form-control"
					 placeholder="请输入新密码" nValidate="{required:true}">
			</div>
		</div>
		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">新密码</label>
			<div class="col-sm-10">
				<input type="password" class="form-control" id="userPhone"
					name="userPwd" placeholder="请确认输入新密码" nValidate="{required:true}">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="submit" class="btn btn-default">修改</button>
			</div>
		</div>
	</form>
</body>
<script type="text/javascript">
	   $(function(){
       $("#form1").validate();
     });
</script>
</html>
